//Actions of Client

   import java.net.*;
	import java.io.*;
	import java.util.*;

   public class outputServer extends Thread
   {
      Socket socket;
      LinkedListAd info;
      	 
      public outputServer(Socket socket, LinkedListAd info)
      {
       
         this.socket = socket;
         this.info = info;
      	
      }
      
      	
      public void run()
      {
      	
         String temp = "";
      	
         if(info.isEmpty() == true)
         {
         
            temp = "No Current Servers Avaliable";
         
         }
         else
         {
         
            temp = info.print();
         
         }
      	
         try
         {
         
            PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
         	
            out.println(temp);	
         
         }
            catch(IOException e)
            {
            
               System.out.println(e);
            
            }
      
      }
      
   }